import { createApp } from "vue";
import App from "./App.vue";
// 引入通用样式
import "@/styles/index.scss";
// 引入路由
import router from "./router/index.ts";
// 引入混入
// import mixin from "@/utils/mixin.ts";
// 引入全局样式
import "@/styles/index.scss";
// 引入过滤器
// import { filters } from "@/utils/filter.ts";
// 配置element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 注册所有图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 引入pinia
import { createPinia } from "pinia";
// 引入vuex
import store from "@/store/index.ts";

const pinia = createPinia();
const app = createApp(App);
app.use(store);
app.use(router);
// app.mixin(mixin);
// app.config.globalProperties.$filters = filters;
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component);
}
// 引入windi.css
import "virtual:windi.css";
app.use(pinia);
import './permission'

app.mount("#app");
